import request from '@/utils/request'

// 查询会员训练订单列表
export function statisticsInstitutionName() {
    return request({
      url: '/customer/mechanism/getMechanismTree',
      method: 'post',
    })
  }
  //  获取支付转化结果
  export function PayTransformResult(data) {
    return request({
      url: '/customer/buried_point/v1/getPayTransformResult',
      method: 'post',
      data:data,
    })
  }
  //获取支付统计结果
  export function PayInfo(data) {
    return request({
      url: '/customer/buried_point/v1/getPayInfo',
      method: 'post',
      data:data,
    })
  }
  //获取训练统计结果  
  export function TrainInfo(data) {
    return request({
      url: '/customer/buried_point/v1/getTrainInfo',
      method: 'post',
      data:data,
    })
  }
  //获取用户量留存信息 
  export function RemainInfo(data) {
    return request({
      url: '/customer/buried_point/v1/getRemainInfo',
      method: 'post',
      data:data,
    })
  }
  //查询埋点记录  
  export function SysBuriedPointList(url,data) {
    return request({
      url: url,
      method: 'post',
      data:data,
    })
  }
  //导出动态数据 /customer/buried_point/v1/dynamicExport
  export function getdynamicExport(data){
    return request({
      url:'/customer/buried_point/v1/dynamicExport',
      method: 'post',
      data:data,
      responseType:"blob"
    })
  }

  // 
  export function UserOnlineTime(data){
    return request({
      url:'/customer/buried_point/v1/getUserOnlineTime',
      method: 'post',
      data:data,
    })
  }

  export function UserOnlineTimeDetail(url,data){
    return request({
      url:url,
      method: 'post',
      data:data,
    })
  }
  //  /customer/buried_point/v1/getUserOnlineTime
  // /customer/buried_point/v1/exportUserOnlineTimeStatus
  export function UserOnlineTimeStatus(data){
    return request({
      url:'/customer/buried_point/v1/getUserOnlineTimeStatus',
      method: 'post',
      data:data,
    })
  }
  export function UserOnlineTimeStatusDetail(url,data){
    return request({
      url:url,
      method: 'post',
      data:data,
    })
  }
  // /customer/buried_point/v1/getUserOnlineFrequency
  export function UserOnlineFrequency(data){
    return request({
      url:'/customer/buried_point/v1/getUserOnlineFrequency',
      method: 'post',
      data:data,
    })
  }
  export function UserOnlineFrequencyDetail(url,data){
    return request({
      url:url,
      method: 'post',
      data:data,
    })
  }
  // 获取用户在线频次(状态)
  export function UserOnlineFrequencyStatus(data){
    return request({
      url:'/customer/buried_point/v1/getUserOnlineFrequencyStatus',
      method: 'post',
      data:data,
    })
  }
  export function UserOnlineFrequencyStatusDetail(url,data){
    return request({
      url:url,
      method: 'post',
      data:data,
    })
  }